import axios from "../../utils/axios";


// 获取用户列表
export function getList(query) {
    return axios({
        url: "/goldendays-user/mbUserManager/getList",
        method: "get",
        params: query
    });
}


// 获取用户列表
export function getIdsUser(query) {
    return axios({
        url: "/goldendays-user/mbUserManager/getIdsUser",
        method: "post",
        params: query
    });
}

// 删除
export function delUser(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/delUser",
        method: "post",
        data: data
    });
}
// 添加
export function addUser(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/addUser",
        method: "post",
        data: data
    });
}
// 添加
export function setupUser(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/setupUser",
        method: "post",
        data: data
    });
}

// 禁止登陆
export function updateUser(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/updateUser",
        method: "post",
        data: data
    });
}
/*---------------消息-----------------------------*/

// 获取用户消息列表
export function getmsgList(query) {
    return axios({
        url: "/goldendays-user/mbUserManager/getMsgList",
        method: "get",
        params: query
    });
}

// 删除消息
export function delmsg(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/delMsg",
        method: "post",
        data: data
    });
}
// 添加消息
export function addmsg(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/insertMsg",
        method: "post",
        data: data
    });
}


/*我的订单*/
export function getMyOrderList(query) {
    return axios({
        url: "/goldendays-user/mbUserManager/getMyOrderList",
        method: "get",
        params: query
    });
}

// 删除订单
export function delMyOrder(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/delMyOrder",
        method: "post",
        data: data
    });
}

/*我的订单*/
export function getFriendList(query) {
    return axios({
        url: "/goldendays-user/mbUserManager/getFriendList",
        method: "get",
        params: query
    });
}

// 删除订单
export function untyingFriend(data) {
    return axios({
        url: "/goldendays-user/mbUserManager/untyingFriend",
        method: "post",
        data: data
    });
}

//vip管理页面数据 goldendays-user/vipMerchant/queryMyChildVipUserHDPage
export function getVipList(query) {
    return axios({
        url: "goldendays-user/vipMerchant/queryMyChildVipUserHDPage",
        method: "get",
        params: query
    });
}

//vip的商城网状图 
export function getCompanyList(query) {
    return axios({
        url: "/goldendays-user/vipMerchant/devNextRelation",
        method: "get",
        params: query
    });
}

// vip禁止登陆
export function updateVipUser(data) {
    return axios({
        url: "goldendays-user/vipManage/noLogin ",
        method: "post",
        data: data
    });
}


